package util.utls;

import base.MyApplcation;
import util.volley.ResultEntity;

/**
 * 本地保存的数据
 */

public class IsUtilUid {
    /**
     * 返回值code的判断（在update里面用）
     * @param entity
     */
    public static void tianjia(ResultEntity entity){
        if (!entity.getCode().equals("0")) {
            if(entity.getCode().equals("1111")){
                ByAlert.alert(entity.getMsg());
                return;
            }
            ByAlert.alert(entity.getMsg());
            return;
        }
    }
    public static  String isUid() {
        String uid = (String) SPUtils.get(MyApplcation.ctx, null, Const.ID, "");
        return uid;
    }

    /**
     * 头像ID
     * @return
     */
    public static  String isHead() {
        String uid = (String) SPUtils.get(MyApplcation.ctx, null, Const.HEAD, "");
        return uid;
    }
    /**
     * 会话
     * @return
     */
    public static String sId() {
        String sid = (String) SPUtils.get(MyApplcation.ctx, null, Const.S_ID, "");
        return sid;
    }
    /**
     * 用户组
     * @return
     */
    public static  String isReparl() {
        String rele = (String) SPUtils.get(MyApplcation.ctx, null, Const.RELE, "");
        return rele;
    }

    /**
     * 金地
     * @return
     */
    public static  String isLNG() {
        String rele = (String) SPUtils.get(MyApplcation.ctx, null, Const.LNG, "");
        return rele;
    }

    /**
     * 唯独
     * @return
     */
    public static  String isLAT() {
        String rele = (String) SPUtils.get(MyApplcation.ctx, null, Const.LAT, "");
        return rele;
    }
    /**
     * 唯独
     * @return
     */
    public static  String isAdd() {
        String rele = (String) SPUtils.get(MyApplcation.ctx, null, Const.Andress, "");
        return rele;
    }

    /**
     * 设置初始支付密码
     * @return
     */
    public static  String isPay() {
        String rele = (String) SPUtils.get(MyApplcation.ctx, null, Const.PaySecret, "");
        return rele;
    }
}
